<template>
  <el-dialog
    v-model="dialogVisible" title="编辑" custom-class="full" fullscreen destroy-on-close
    @opened="handleDlgOpen"
  >
    <div class="qyui-cell row qyui-container">
      <!-- <div class="qyui-cell ">
        数据源格式 <el-radio-group v-model="manager.DoesDataFromProcedure" >
          <el-radio-button :label="false">
            SQL文本
          </el-radio-button>
          <el-radio-button :label="true">
            存储过程
          </el-radio-button>
        </el-radio-group>
      </div> -->
      <!-- <template v-if="manager.DoesDataFromProcedure">
        <EditDataSourceProc @changeParam="changeParam"></EditDataSourceProc>
      </template>
      <template v-else> -->
      <EditDataSourceSQL @changeParam="changeParam"></EditDataSourceSQL>
      <!-- </template> -->
    </div>
  </el-dialog>
</template>

<script>
// import EditDataSourceProc from './EditDataSourceProc.vue';
import EditDataSourceSQL from './EditDataSourceSQL.vue';

import dialogMixin from '@/mixins/dialogMixin.js';

export default {
  components: { EditDataSourceSQL },
  mixins: [dialogMixin],
  inject: ['manager'],
  data: function () {
    return {

    };
  },
  computed: {

  },
  mounted: function () {

  },
  methods: {
    handleDlgOpen() {
      if (this.manager.AllDataSets.length > 0) {
        this.handleSelectDataSet(0);
      }
    },

  },
};
</script>

<style>
</style>
